package data.nanjing.expo.models.dao;

import data.nanjing.expo.models.domain.SysConfig;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface SysConfigDao {
    public void deleteSysConfig(@Param("id") int id);

    public List<SysConfig> findSysConfigByType(@Param("type") String type);

    public List<SysConfig> findAll();

    public void addSysConfig(@Param("name") String name,
                             @Param("code") String code,
                             @Param("type") String type,
                             @Param("createTime") Date createTime);

    public void updateSysConfig(@Param("id") int id,
                                @Param("name") String name,
                                @Param("code") String code,
                                @Param("type") String type,
                                @Param("updateTime") Date updateTime);

    public List<SysConfig> findSysConfigInList(@Param("list") List<Integer> list);
}
